import { ReactNode } from 'react';

interface ExternalLinkProps {
  children: ReactNode;
  href: string;
}

export function ExternalLink({ children, href }: ExternalLinkProps) {
  return (
    <a href={href} target='_blank' rel='noreferrer'>
      <span>{children}</span>
      <span className='icon-external-link'></span>
    </a>
  );
}
